package ui.activity;

import android.os.Bundle;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.fy.fyzf.R;
import com.fy.fyzf.base.BaseActivity;
import com.fy.fyzf.bean.ExChangeRecordBean;
import com.fy.fyzf.bean.ExchangeBean;
import com.fy.fyzf.bean.ExchangeDetailBean;
import com.fy.fyzf.bean.IntegralRecordBean;
import com.fy.fyzf.bean.IntegralStoreBean;
import com.fy.fyzf.bean.RulesBean;
import com.fy.fyzf.presenter.IntergralPresenter;
import com.fy.fyzf.view.IntergralCallBack;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;
import ui.adapter.RulesAdapter;

public class IntegralRuleActivity extends BaseActivity<IntergralPresenter> implements IntergralCallBack {


//    @BindView(R.id.recycleView)
//    RecyclerView recycleView;
    private RulesAdapter rulesAdapter;

    @Override
    protected IntergralPresenter createPresenter() {
        return new IntergralPresenter(this);
    }

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_integral_rule;
    }

    @Override
    public void initView() {
        super.initView();
//        rulesAdapter = new RulesAdapter();
//        recycleView.setLayoutManager(new LinearLayoutManager(this));
//        recycleView.setAdapter(rulesAdapter);
    }

    @Override
    public void initData() {
        super.initData();
        setTitleName("积分规则");
//        mPresenter.getRules();
    }

    @Override
    public void getIntegralListSuccess(IntegralStoreBean integralStoreBean) {

    }

    @Override
    public void exchangeSuccess(ExchangeBean exchangeBean) {

    }

    @Override
    public void getExchangeDetailSuccess(ExchangeDetailBean exchangeDetailBean) {

    }

    @Override
    public void getExchangeRecordSuccess(ExChangeRecordBean exChangeRecordBean) {

    }

    @Override
    public void getIntegralRecordListSuccess(IntegralRecordBean integralRecordBean) {

    }

    @Override
    public void getRulesSuccess(List<RulesBean> list) {
//        rulesAdapter.setNewData(list);
    }

}